{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'__header__': b'MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Tue Dec 05 01:11:02 2006', '__version__': '1.0', '__globals__': [], 'bags': array([[ array([[ 179.5 ,  181.  ,  190.5 ,   -5.25,  -35.75,  -47.  ,  -79.5 ,\n",
      "         -18.  ,   29.  ,   -1.75,   27.  ,   32.25,   16.  ,  -63.  ,\n",
      "        -108.5 ],\n",
      "       [ 179.75,  209.25,  224.25,    2.75,  -82.75, -106.25,  -79.25,\n",
      "         -46.75,   -5.25,   -5.25,   -6.25,   -6.5 ,   10.5 ,  -94.5 ,\n",
      "        -146.25],\n",
      "       [ 177.75,  208.  ,  222.75,    1.75,  -27.  ,  -32.25,  -79.  ,\n",
      "         -47.25,   -5.25,  -10.75,  -11.75,  -11.5 ,   20.5 ,  -89.25,\n",
      "        -143.  ],\n",
      "       [ 203.75,  137.25,  118.  ,   -6.5 ,  -12.75,  -12.5 ,  -67.  ,\n",
      "          52.25,  111.25,   -3.75,   28.  ,   32.5 ,    1.75,   -8.  ,\n",
      "         -31.5 ],\n",
      "       [ 207.  ,  166.75,  152.25,   -5.  ,  -60.5 ,  -71.  ,  -73.5 ,\n",
      "          22.25,   76.75,  -20.5 ,   -7.  ,   -5.25,  -13.5 ,  -49.25,\n",
      "         -76.5 ],\n",
      "       [ 200.  ,  165.25,  150.5 ,    3.75,  -28.  ,  -32.5 ,  -68.25,\n",
      "          22.  ,   77.  ,  -25.25,  -12.75,   -8.75,   -3.25,  -56.75,\n",
      "         -81.5 ],\n",
      "       [ 195.5 ,  118.  ,   82.  ,    9.  ,   -6.75,   -3.25,  -16.  ,\n",
      "          63.  ,  108.5 ,    2.75,    0.75,   -2.25,   13.75,   -2.25,\n",
      "          -3.25],\n",
      "       [ 190.25,  114.75,   78.  ,   18.75,    3.75,    6.5 ,  -10.5 ,\n",
      "          94.5 ,  146.25,   -1.5 ,    2.75,    3.  ,   14.25,   -6.  ,\n",
      "          -5.75],\n",
      "       [ 198.25,  118.75,   79.75,   -2.75,   -0.75,    2.25,  -20.5 ,\n",
      "          89.25,  143.  ,  -23.  ,  -10.  ,   -1.5 ,   -3.75,  -22.25,\n",
      "         -15.  ]])],\n",
      "       [ array([[ 155.  ,  167.5 ,  182.  ,   -9.  ,   -3.75,   -0.75,  -41.75,\n",
      "         -29.  ,   -9.  ,  -12.75,  -12.5 ,  -19.  ,  -24.  ,  -23.  ,\n",
      "         -32.75],\n",
      "       [ 149.75,  161.75,  173.25,    3.25,    6.5 ,   11.5 ,  -45.  ,\n",
      "         -28.5 ,   -2.5 ,  -13.75,  -12.5 ,  -19.25,  -16.75,  -15.  ,\n",
      "         -22.75],\n",
      "       [ 142.25,  155.  ,  163.  ,   12.75,   12.5 ,   19.  ,  -38.  ,\n",
      "         -20.75,    9.  ,  -15.75,  -12.5 ,  -19.25,   -2.75,   -1.5 ,\n",
      "          -6.  ],\n",
      "       [ 143.  ,  155.5 ,  164.5 ,  -13.  ,   -9.75,   -7.75,  -31.  ,\n",
      "         -22.  ,   -4.  ,   -4.25,   -3.5 ,   -6.5 ,  -23.75,  -22.75,\n",
      "         -30.75],\n",
      "       [ 143.25,  156.25,  163.5 ,   -3.75,   -3.25,   -0.25,  -36.75,\n",
      "         -27.75,  -10.5 ,  -17.  ,  -16.75,  -20.  ,  -26.25,  -25.25,\n",
      "         -33.5 ],\n",
      "       [ 138.75,  152.  ,  158.  ,    4.25,    3.5 ,    6.5 ,  -34.5 ,\n",
      "         -25.25,   -8.  ,  -14.75,  -13.25,  -17.5 ,  -13.75,  -12.5 ,\n",
      "         -18.5 ],\n",
      "       [ 131.  ,  144.5 ,  149.25,   -7.25,   -5.5 ,   -4.25,   24.  ,\n",
      "          23.  ,   32.75,    8.5 ,    9.  ,    7.75,  -26.  ,  -25.25,\n",
      "         -32.5 ],\n",
      "       [ 133.  ,  146.75,  150.5 ,   -0.5 ,   -1.25,    1.25,   16.75,\n",
      "          15.  ,   22.75,   -7.5 ,   -6.25,   -8.  ,  -28.75,  -29.  ,\n",
      "         -35.  ],\n",
      "       [ 139.5 ,  153.5 ,  157.  ,   -8.5 ,   -9.  ,   -7.75,    2.75,\n",
      "           1.5 ,    6.  ,  -19.75,  -17.75,  -19.25,  -29.5 ,  -30.5 ,\n",
      "         -35.75]])],\n",
      "       [ array([[ 196.  ,  184.  ,  173.  ,  -38.75,  -17.5 ,   -9.25,  -75.  ,\n",
      "          34.25,   53.5 ,    6.  ,    1.25,   -4.5 ,  -54.5 ,  -82.25,\n",
      "        -106.75],\n",
      "       [ 207.5 ,  187.75,  171.5 ,  -29.75,  -11.25,   -2.  ,  -84.75,\n",
      "          31.75,   54.5 ,  -17.75,   -7.5 ,   -4.75,  -70.  ,  -90.5 ,\n",
      "        -117.  ],\n",
      "       [ 202.  ,  185.25,  168.5 ,   -6.  ,   -1.25,    4.5 ,  -81.25,\n",
      "          33.25,   57.25,  -20.75,   -1.75,    6.  ,  -49.25,  -79.  ,\n",
      "        -120.  ],\n",
      "       [ 174.75,  132.  ,  112.25,  -49.25,  -19.5 ,   -6.25,   -6.5 ,\n",
      "          90.75,  110.5 ,   21.  ,    4.75,  -23.25,  -61.25,  -58.75,\n",
      "         -77.5 ],\n",
      "       [ 193.5 ,  138.25,  102.25,  -42.  ,  -15.  ,    9.  ,  -23.25,\n",
      "          85.5 ,  120.25,   -8.25,   -6.5 ,  -16.  ,  -83.5 ,  -61.5 ,\n",
      "         -68.  ],\n",
      "       [ 195.75,  136.75,   89.  ,  -21.  ,   -4.75,   23.25,  -29.25,\n",
      "          85.75,  132.25,  -30.25,  -14.25,   -1.5 ,  -89.  ,  -59.  ,\n",
      "         -51.5 ],\n",
      "       [ 141.5 ,  101.75,   66.25,   -9.  ,   10.75,   12.  ,   54.5 ,\n",
      "          82.25,  106.75,   11.25,    4.5 ,  -17.75,  -75.75,  -53.  ,\n",
      "         -33.25],\n",
      "       [ 137.5 ,   97.25,   54.5 ,    6.25,   14.25,   21.5 ,   70.  ,\n",
      "          90.5 ,  117.  ,   17.25,   12.75,   -2.25,  -74.5 ,  -49.  ,\n",
      "         -25.75],\n",
      "       [ 152.75,  106.25,   48.5 ,  -11.25,   -4.5 ,   17.75,   49.25,\n",
      "          79.  ,  120.  ,  -41.75,  -33.75,  -12.25,  -95.5 ,  -61.  ,\n",
      "         -22.25]])],\n",
      "       ..., \n",
      "       [ array([[ 180.  ,  165.5 ,  183.5 ,  -44.75,  -46.25,  -45.25,  -12.75,\n",
      "          -8.25,   -3.  ,   -6.  ,  -10.75,  -11.25,  -20.  ,  -59.75,\n",
      "         -86.  ],\n",
      "       [ 177.  ,  158.75,  176.25,  -10.5 ,   -7.25,   -4.75,   -8.75,\n",
      "           0.  ,    4.5 ,  -23.  ,  -26.25,  -25.  ,    2.5 ,  -41.  ,\n",
      "         -69.  ],\n",
      "       [ 174.  ,  154.75,  172.25,    6.  ,   10.75,   11.25,   -7.  ,\n",
      "           4.25,    8.75,  -10.  ,   -9.75,   -8.75,    2.  ,  -42.  ,\n",
      "         -70.  ],\n",
      "       [ 169.25,  136.5 ,  140.5 ,  -27.5 ,  -23.  ,  -24.  ,   -0.5 ,\n",
      "          22.  ,   40.  ,   10.75,    3.  ,    0.25,  -14.  ,  -46.5 ,\n",
      "         -59.25],\n",
      "       [ 182.25,  143.  ,  144.75,  -15.75,   -8.  ,   -4.  ,  -12.  ,\n",
      "          16.25,   36.25,  -27.  ,  -26.25,  -22.75,  -13.25,  -47.5 ,\n",
      "         -59.75],\n",
      "       [ 180.  ,  139.5 ,  140.75,  -10.75,   -3.  ,   -0.25,  -10.75,\n",
      "          19.25,   40.5 ,  -23.  ,  -23.5 ,  -17.25,  -16.5 ,  -48.  ,\n",
      "         -61.  ],\n",
      "       [ 160.  ,  105.75,   97.5 ,   -7.5 ,   -4.25,   -3.75,   20.  ,\n",
      "          59.75,   86.  ,   16.  ,    7.  ,    4.75,  -12.5 ,  -30.25,\n",
      "         -29.75],\n",
      "       [ 179.5 ,  117.75,  107.25,  -19.  ,   -9.5 ,   -6.25,   -2.5 ,\n",
      "          41.  ,   69.  ,  -17.5 ,  -17.75,  -13.25,  -16.5 ,  -33.75,\n",
      "         -35.25],\n",
      "       [ 176.  ,  112.75,  102.25,  -16.  ,   -7.  ,   -4.75,   -2.  ,\n",
      "          42.  ,   70.  ,  -16.75,  -15.5 ,   -8.75,  -12.  ,  -26.25,\n",
      "         -29.5 ]])],\n",
      "       [ array([[ 50.75,  52.5 ,  57.5 ,   7.  ,   3.5 ,   3.5 ,   7.25,  -1.25,\n",
      "          2.5 ,   8.25,   2.75,   0.  ,  20.5 ,   8.5 ,   3.25],\n",
      "       [ 58.  ,  58.25,  61.25, -17.5 , -16.75, -15.25, -18.75, -21.25,\n",
      "        -16.75,  -1.5 ,  -1.  ,  -3.  ,  22.75,   4.25,   4.  ],\n",
      "       [ 59.  ,  55.25,  57.5 ,  -8.25,  -2.75,   0.  , -22.5 , -19.  ,\n",
      "        -14.  , -16.  ,   2.25,  -4.75,   0.25,  -3.75,  -3.25],\n",
      "       [ 77.5 ,  62.25,  69.5 ,  13.  ,  20.  ,  22.25, -19.75,  -3.  ,\n",
      "         -4.25, -10.25,  -2.5 ,  -4.5 , -46.75, -28.75, -36.25],\n",
      "       [ 89.25,  71.  ,  76.5 , -25.75, -20.75, -17.5 , -48.25, -27.75,\n",
      "        -28.25, -40.  , -16.25, -19.25, -49.5 , -35.  , -37.5 ],\n",
      "       [ 67.25,  59.75,  65.  ,  10.25,   2.5 ,   4.5 , -25.25, -19.  ,\n",
      "        -21.  , -25.75,  -8.  , -16.5 , -31.25, -25.25, -28.25],\n",
      "       [ 71.25,  61.  ,  60.75,   2.5 ,   4.75,  11.25, -20.5 ,  -8.5 ,\n",
      "         -3.25, -12.  ,  -9.5 ,  -6.5 , -58.5 , -48.75, -42.25],\n",
      "       [ 80.75,  62.5 ,  65.25,  -9.75,  -6.25,  -5.25, -22.75,  -4.25,\n",
      "         -4.  , -34.  , -13.75, -14.5 , -66.25, -48.5 , -44.75],\n",
      "       [ 59.25,  51.5 ,  54.25,  12.  ,   9.5 ,   6.5 ,  -0.25,   3.75,\n",
      "          3.25, -17.  ,  -8.25,  -9.5 , -43.  , -35.  , -32.5 ]])],\n",
      "       [ array([[  99.5 ,   86.5 ,   61.75,   37.  ,   32.25,   28.75,   29.  ,\n",
      "          30.75,   31.5 ,   40.25,   46.5 ,   39.75,   82.  ,   87.  ,\n",
      "          71.75],\n",
      "       [ 109.75,  104.5 ,   86.5 ,   47.75,   35.5 ,   17.75,  -39.5 ,\n",
      "         -33.  ,  -34.  ,   21.5 ,   17.25,    5.  ,   28.  ,   26.5 ,\n",
      "          13.25],\n",
      "       [ 139.75,  133.  ,  101.5 ,  -40.25,  -46.5 ,  -39.75,  -68.75,\n",
      "         -56.  ,  -46.5 ,  -31.75,  -24.25,  -22.  ,  -37.75,  -33.5 ,\n",
      "         -21.75],\n",
      "       [ 139.  ,  130.  ,   97.5 ,   -0.25,   -7.  ,   -1.25,   -8.  ,\n",
      "         -14.5 ,  -13.  ,  -67.25,  -58.5 ,  -39.25,  -17.25,  -17.  ,\n",
      "         -12.5 ],\n",
      "       [ 116.5 ,  110.75,   88.5 ,   45.5 ,   38.  ,   24.  ,  -10.25,\n",
      "          -5.75,   -8.  ,  -17.75,  -16.5 ,  -13.  ,   -0.5 ,   -3.5 ,\n",
      "          -7.75],\n",
      "       [  71.75,   71.5 ,   58.25,   67.25,   58.5 ,   39.25,   69.5 ,\n",
      "          67.75,   41.5 ,   24.5 ,   25.5 ,   17.5 ,   54.25,   46.25,\n",
      "          33.75],\n",
      "       [ 181.5 ,  173.5 ,  133.5 ,  -11.25,  -14.75,  -18.5 ,  -82.  ,\n",
      "         -87.  ,  -71.75,  -79.5 ,  -74.  ,  -53.75,  -43.  ,  -48.  ,\n",
      "         -33.25],\n",
      "       [ 137.75,  131.  ,   99.75,   48.75,   46.5 ,   38.25,  -28.  ,\n",
      "         -26.5 ,  -13.25,   -8.25,   -9.75,   -3.  ,  -19.  ,  -26.25,\n",
      "         -13.75],\n",
      "       [ 102.  ,   99.5 ,   79.75,   79.5 ,   74.  ,   53.75,   37.75,\n",
      "          33.5 ,   21.75,   36.25,   29.75,   32.25,   -0.5 ,  -13.75,\n",
      "          -7.75]])]], dtype=object), 'targets': array([[ 1,  1,  1, ..., -1, -1, -1],\n",
      "       [-1, -1, -1, ..., -1, -1, -1],\n",
      "       [-1, -1, -1, ..., -1, -1, -1],\n",
      "       [-1, -1, -1, ..., -1, -1, -1],\n",
      "       [-1, -1, -1, ...,  1,  1,  1]], dtype=int16), 'class_name': array([[array(['desert'], \n",
      "      dtype='<U6')],\n",
      "       [array(['mountains'], \n",
      "      dtype='<U9')],\n",
      "       [array(['sea'], \n",
      "      dtype='<U3')],\n",
      "       [array(['sunset'], \n",
      "      dtype='<U6')],\n",
      "       [array(['trees'], \n",
      "      dtype='<U5')]], dtype=object)}\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[1 1 1 ..., 0 0 0]\n",
      " [0 0 0 ..., 0 0 0]\n",
      " [0 0 0 ..., 0 0 0]\n",
      " [0 0 0 ..., 0 0 0]\n",
      " [0 0 0 ..., 1 1 1]]\n",
      "<class 'numpy.ndarray'>\n",
      "                                              imagepath filetype  \\\n",
      "0       ../../../Dataset/miml-image-data/original/1.jpg      jpg   \n",
      "1       ../../../Dataset/miml-image-data/original/2.jpg      jpg   \n",
      "2       ../../../Dataset/miml-image-data/original/3.jpg      jpg   \n",
      "3       ../../../Dataset/miml-image-data/original/4.jpg      jpg   \n",
      "4       ../../../Dataset/miml-image-data/original/5.jpg      jpg   \n",
      "5       ../../../Dataset/miml-image-data/original/6.jpg      jpg   \n",
      "6       ../../../Dataset/miml-image-data/original/7.jpg      jpg   \n",
      "7       ../../../Dataset/miml-image-data/original/8.jpg      jpg   \n",
      "8       ../../../Dataset/miml-image-data/original/9.jpg      jpg   \n",
      "9      ../../../Dataset/miml-image-data/original/10.jpg      jpg   \n",
      "10     ../../../Dataset/miml-image-data/original/11.jpg      jpg   \n",
      "11     ../../../Dataset/miml-image-data/original/12.jpg      jpg   \n",
      "12     ../../../Dataset/miml-image-data/original/13.jpg      jpg   \n",
      "13     ../../../Dataset/miml-image-data/original/14.jpg      jpg   \n",
      "14     ../../../Dataset/miml-image-data/original/15.jpg      jpg   \n",
      "15     ../../../Dataset/miml-image-data/original/16.jpg      jpg   \n",
      "16     ../../../Dataset/miml-image-data/original/17.jpg      jpg   \n",
      "17     ../../../Dataset/miml-image-data/original/18.jpg      jpg   \n",
      "18     ../../../Dataset/miml-image-data/original/19.jpg      jpg   \n",
      "19     ../../../Dataset/miml-image-data/original/20.jpg      jpg   \n",
      "20     ../../../Dataset/miml-image-data/original/21.jpg      jpg   \n",
      "21     ../../../Dataset/miml-image-data/original/22.jpg      jpg   \n",
      "22     ../../../Dataset/miml-image-data/original/23.jpg      jpg   \n",
      "23     ../../../Dataset/miml-image-data/original/24.jpg      jpg   \n",
      "24     ../../../Dataset/miml-image-data/original/25.jpg      jpg   \n",
      "25     ../../../Dataset/miml-image-data/original/26.jpg      jpg   \n",
      "26     ../../../Dataset/miml-image-data/original/27.jpg      jpg   \n",
      "27     ../../../Dataset/miml-image-data/original/28.jpg      jpg   \n",
      "28     ../../../Dataset/miml-image-data/original/29.jpg      jpg   \n",
      "29     ../../../Dataset/miml-image-data/original/30.jpg      jpg   \n",
      "...                                                 ...      ...   \n",
      "1970  ../../../Dataset/miml-image-data/original/1971...      jpg   \n",
      "1971  ../../../Dataset/miml-image-data/original/1972...      jpg   \n",
      "1972  ../../../Dataset/miml-image-data/original/1973...      jpg   \n",
      "1973  ../../../Dataset/miml-image-data/original/1974...      jpg   \n",
      "1974  ../../../Dataset/miml-image-data/original/1975...      jpg   \n",
      "1975  ../../../Dataset/miml-image-data/original/1976...      jpg   \n",
      "1976  ../../../Dataset/miml-image-data/original/1977...      jpg   \n",
      "1977  ../../../Dataset/miml-image-data/original/1978...      jpg   \n",
      "1978  ../../../Dataset/miml-image-data/original/1979...      jpg   \n",
      "1979  ../../../Dataset/miml-image-data/original/1980...      jpg   \n",
      "1980  ../../../Dataset/miml-image-data/original/1981...      jpg   \n",
      "1981  ../../../Dataset/miml-image-data/original/1982...      jpg   \n",
      "1982  ../../../Dataset/miml-image-data/original/1983...      jpg   \n",
      "1983  ../../../Dataset/miml-image-data/original/1984...      jpg   \n",
      "1984  ../../../Dataset/miml-image-data/original/1985...      jpg   \n",
      "1985  ../../../Dataset/miml-image-data/original/1986...      jpg   \n",
      "1986  ../../../Dataset/miml-image-data/original/1987...      jpg   \n",
      "1987  ../../../Dataset/miml-image-data/original/1988...      jpg   \n",
      "1988  ../../../Dataset/miml-image-data/original/1989...      jpg   \n",
      "1989  ../../../Dataset/miml-image-data/original/1990...      jpg   \n",
      "1990  ../../../Dataset/miml-image-data/original/1991...      jpg   \n",
      "1991  ../../../Dataset/miml-image-data/original/1992...      jpg   \n",
      "1992  ../../../Dataset/miml-image-data/original/1993...      jpg   \n",
      "1993  ../../../Dataset/miml-image-data/original/1994...      jpg   \n",
      "1994  ../../../Dataset/miml-image-data/original/1995...      jpg   \n",
      "1995  ../../../Dataset/miml-image-data/original/1996...      jpg   \n",
      "1996  ../../../Dataset/miml-image-data/original/1997...      jpg   \n",
      "1997  ../../../Dataset/miml-image-data/original/1998...      jpg   \n",
      "1998  ../../../Dataset/miml-image-data/original/1999...      jpg   \n",
      "1999  ../../../Dataset/miml-image-data/original/2000...      jpg   \n",
      "\n",
      "      target_some_hot  \n",
      "0     [1, 0, 0, 0, 0]  \n",
      "1     [1, 0, 0, 0, 0]  \n",
      "2     [1, 0, 0, 0, 0]  \n",
      "3     [1, 1, 0, 0, 0]  \n",
      "4     [1, 0, 0, 0, 0]  \n",
      "5     [1, 0, 0, 0, 0]  \n",
      "6     [1, 1, 0, 0, 0]  \n",
      "7     [1, 0, 0, 0, 0]  \n",
      "8     [1, 0, 0, 0, 0]  \n",
      "9     [1, 1, 0, 0, 0]  \n",
      "10    [1, 0, 0, 0, 0]  \n",
      "11    [1, 0, 0, 0, 0]  \n",
      "12    [1, 0, 0, 0, 0]  \n",
      "13    [1, 0, 0, 0, 0]  \n",
      "14    [1, 0, 0, 0, 0]  \n",
      "15    [1, 0, 0, 0, 0]  \n",
      "16    [1, 0, 0, 0, 0]  \n",
      "17    [1, 0, 0, 0, 0]  \n",
      "18    [1, 0, 0, 0, 0]  \n",
      "19    [1, 0, 0, 0, 0]  \n",
      "20    [1, 0, 0, 0, 1]  \n",
      "21    [1, 0, 0, 0, 0]  \n",
      "22    [1, 0, 0, 0, 0]  \n",
      "23    [1, 0, 0, 0, 1]  \n",
      "24    [1, 0, 0, 0, 0]  \n",
      "25    [1, 0, 0, 0, 0]  \n",
      "26    [1, 0, 0, 0, 0]  \n",
      "27    [1, 0, 0, 0, 1]  \n",
      "28    [1, 0, 0, 0, 0]  \n",
      "29    [1, 0, 0, 0, 0]  \n",
      "...               ...  \n",
      "1970  [0, 0, 0, 0, 1]  \n",
      "1971  [0, 0, 0, 0, 1]  \n",
      "1972  [0, 0, 0, 0, 1]  \n",
      "1973  [0, 0, 0, 0, 1]  \n",
      "1974  [0, 0, 0, 0, 1]  \n",
      "1975  [0, 0, 0, 0, 1]  \n",
      "1976  [0, 0, 0, 0, 1]  \n",
      "1977  [0, 0, 0, 0, 1]  \n",
      "1978  [0, 0, 0, 0, 1]  \n",
      "1979  [0, 0, 0, 0, 1]  \n",
      "1980  [0, 0, 0, 0, 1]  \n",
      "1981  [0, 0, 0, 0, 1]  \n",
      "1982  [0, 0, 0, 0, 1]  \n",
      "1983  [0, 0, 0, 0, 1]  \n",
      "1984  [0, 0, 0, 0, 1]  \n",
      "1985  [0, 0, 0, 0, 1]  \n",
      "1986  [0, 0, 0, 0, 1]  \n",
      "1987  [0, 0, 0, 0, 1]  \n",
      "1988  [0, 0, 0, 0, 1]  \n",
      "1989  [0, 0, 0, 0, 1]  \n",
      "1990  [0, 0, 0, 0, 1]  \n",
      "1991  [0, 0, 1, 0, 1]  \n",
      "1992  [0, 0, 0, 0, 1]  \n",
      "1993  [0, 0, 0, 0, 1]  \n",
      "1994  [0, 0, 0, 0, 1]  \n",
      "1995  [0, 0, 0, 0, 1]  \n",
      "1996  [0, 0, 0, 0, 1]  \n",
      "1997  [0, 0, 0, 0, 1]  \n",
      "1998  [0, 0, 0, 0, 1]  \n",
      "1999  [0, 0, 0, 0, 1]  \n",
      "\n",
      "[2000 rows x 3 columns]\n",
      "There are 2000 images in MIML image dataset.\n",
      "['desert', 'mountains', 'sea', 'sunset', 'trees']\n",
      "<class 'pandas.core.frame.DataFrame'>\n",
      "<class 'numpy.ndarray'>\n",
      "[['../../../Dataset/miml-image-data/original/1.jpg' 'jpg' [1, 0, 0, 0, 0]]\n",
      " ['../../../Dataset/miml-image-data/original/2.jpg' 'jpg' [1, 0, 0, 0, 0]]\n",
      " ['../../../Dataset/miml-image-data/original/3.jpg' 'jpg' [1, 0, 0, 0, 0]]\n",
      " ..., \n",
      " ['../../../Dataset/miml-image-data/original/1998.jpg' 'jpg'\n",
      "  [0, 0, 0, 0, 1]]\n",
      " ['../../../Dataset/miml-image-data/original/1999.jpg' 'jpg'\n",
      "  [0, 0, 0, 0, 1]]\n",
      " ['../../../Dataset/miml-image-data/original/2000.jpg' 'jpg'\n",
      "  [0, 0, 0, 0, 1]]]\n"
     ]
    }
   ],
   "source": [
    "#encoding:utf8\n",
    "# This Python 3 environment comes with many helpful analytics libraries installed\n",
    "# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n",
    "# For example, here's several helpful packages to load in \n",
    "\n",
    "import numpy as np # linear algebra\n",
    "import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
    "\n",
    "# Input data files are available in the \"../input/\" directory.\n",
    "# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n",
    "\n",
    "import os\n",
    "\n",
    "# Any results you write to the current directory are saved as output.\n",
    "\n",
    "import matplotlib.pylab as plt\n",
    "from mpl_toolkits.axes_grid1 import ImageGrid\n",
    "import scipy.io as sio\n",
    "\n",
    "original_path = \"../../../Dataset/miml-image-data/original\"\n",
    "mat_path   = \"../../../Dataset/miml-image-data/miml data.mat\"\n",
    "NUM_CLASSES = 5\n",
    "\n",
    "mat = sio.loadmat(mat_path)\n",
    "print(mat)\n",
    "from glob import glob\n",
    "\n",
    "all_original_images = []\n",
    "natural_images = []\n",
    "# natural_images = sorted(glob(original_path+\"/*\"))\n",
    "for i in range(1,2001):\n",
    "    \n",
    "    natural_images.append(os.path.join(original_path,str(i))+\".jpg\")\n",
    "all_original_images = all_original_images + natural_images\n",
    "all_original_images = pd.DataFrame({'imagepath':all_original_images})\n",
    "all_original_images['filetype'] = all_original_images.apply(lambda row: row.\n",
    "imagepath.split(\".\")[-1],axis=1)\n",
    "\n",
    "## octave code:\n",
    "##  load(\"miml data.mat\")\n",
    "##  length(targets)   \n",
    "## $ ans =  2000  (targets 5 * 2000 )\n",
    "# [[ 1  1  1 ..., -1 -1 -1]\n",
    "#  [-1 -1 -1 ..., -1 -1 -1]\n",
    "#  [-1 -1 -1 ..., -1 -1 -1]\n",
    "#  [-1 -1 -1 ..., -1 -1 -1]\n",
    "#  [-1 -1 -1 ...,  1  1  1]]\n",
    "\n",
    "mat = sio.loadmat(mat_path)\n",
    "targets = mat['targets']\n",
    "class_name = mat['class_name']\n",
    "bags = mat['bags']\n",
    "\n",
    "targets = np.array([[elem if elem == 1 else 0 for elem in row]for row in targets])\n",
    "print(targets)\n",
    "print(type(targets))\n",
    "\n",
    "some_hot_list =[]\n",
    "for i in range(0,2000):\n",
    "    target_some_hot = [targets[0][i],targets[1][i],targets[2][i],targets[3][i],targets[4][i]]\n",
    "    some_hot_list.append(target_some_hot)\n",
    "all_original_images['target_some_hot'] = some_hot_list \n",
    "\n",
    "all_original_images.head()\n",
    "print(all_original_images)\n",
    "print(\"There are {} images in MIML image dataset.\".format(all_original_images.shape[0])) \n",
    "classes =['desert','mountains','sea','sunset','trees']\n",
    "print(classes)\n",
    "\n",
    "print(type(all_original_images))\n",
    "print(type(all_original_images.values[:, :]))\n",
    "print(all_original_images.values[:, :])\n",
    "x = []\n",
    "from skimage import io\n",
    "from skimage.transform import resize"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "../../../Dataset/miml-image-data/original/1401.jpg\n",
      "../../../Dataset/miml-image-data/original/1402.jpg\n",
      "../../../Dataset/miml-image-data/original/1403.jpg\n",
      "../../../Dataset/miml-image-data/original/1404.jpg\n",
      "../../../Dataset/miml-image-data/original/1405.jpg\n",
      "../../../Dataset/miml-image-data/original/1406.jpg\n",
      "../../../Dataset/miml-image-data/original/1407.jpg\n",
      "../../../Dataset/miml-image-data/original/1408.jpg\n",
      "../../../Dataset/miml-image-data/original/1409.jpg\n",
      "../../../Dataset/miml-image-data/original/1410.jpg\n",
      "../../../Dataset/miml-image-data/original/1411.jpg\n",
      "../../../Dataset/miml-image-data/original/1412.jpg\n",
      "../../../Dataset/miml-image-data/original/1413.jpg\n",
      "../../../Dataset/miml-image-data/original/1414.jpg\n",
      "../../../Dataset/miml-image-data/original/1415.jpg\n",
      "../../../Dataset/miml-image-data/original/1416.jpg\n",
      "../../../Dataset/miml-image-data/original/1417.jpg\n",
      "../../../Dataset/miml-image-data/original/1418.jpg\n",
      "../../../Dataset/miml-image-data/original/1419.jpg\n",
      "../../../Dataset/miml-image-data/original/1420.jpg\n",
      "../../../Dataset/miml-image-data/original/1421.jpg\n",
      "../../../Dataset/miml-image-data/original/1422.jpg\n",
      "../../../Dataset/miml-image-data/original/1423.jpg\n",
      "../../../Dataset/miml-image-data/original/1424.jpg\n",
      "../../../Dataset/miml-image-data/original/1425.jpg\n",
      "../../../Dataset/miml-image-data/original/1426.jpg\n",
      "../../../Dataset/miml-image-data/original/1427.jpg\n",
      "../../../Dataset/miml-image-data/original/1428.jpg\n",
      "../../../Dataset/miml-image-data/original/1429.jpg\n",
      "../../../Dataset/miml-image-data/original/1430.jpg\n",
      "../../../Dataset/miml-image-data/original/1431.jpg\n",
      "../../../Dataset/miml-image-data/original/1432.jpg\n",
      "../../../Dataset/miml-image-data/original/1433.jpg\n",
      "../../../Dataset/miml-image-data/original/1434.jpg\n",
      "../../../Dataset/miml-image-data/original/1435.jpg\n",
      "../../../Dataset/miml-image-data/original/1436.jpg\n",
      "../../../Dataset/miml-image-data/original/1437.jpg\n",
      "../../../Dataset/miml-image-data/original/1438.jpg\n",
      "../../../Dataset/miml-image-data/original/1439.jpg\n",
      "../../../Dataset/miml-image-data/original/1440.jpg\n",
      "../../../Dataset/miml-image-data/original/1441.jpg\n",
      "../../../Dataset/miml-image-data/original/1442.jpg\n",
      "../../../Dataset/miml-image-data/original/1443.jpg\n",
      "../../../Dataset/miml-image-data/original/1444.jpg\n",
      "../../../Dataset/miml-image-data/original/1445.jpg\n",
      "../../../Dataset/miml-image-data/original/1446.jpg\n",
      "../../../Dataset/miml-image-data/original/1447.jpg\n",
      "../../../Dataset/miml-image-data/original/1448.jpg\n",
      "../../../Dataset/miml-image-data/original/1449.jpg\n",
      "../../../Dataset/miml-image-data/original/1450.jpg\n",
      "../../../Dataset/miml-image-data/original/1451.jpg\n",
      "../../../Dataset/miml-image-data/original/1452.jpg\n",
      "../../../Dataset/miml-image-data/original/1453.jpg\n",
      "../../../Dataset/miml-image-data/original/1454.jpg\n",
      "../../../Dataset/miml-image-data/original/1455.jpg\n",
      "../../../Dataset/miml-image-data/original/1456.jpg\n",
      "../../../Dataset/miml-image-data/original/1457.jpg\n",
      "../../../Dataset/miml-image-data/original/1458.jpg\n",
      "../../../Dataset/miml-image-data/original/1459.jpg\n",
      "../../../Dataset/miml-image-data/original/1460.jpg\n",
      "../../../Dataset/miml-image-data/original/1461.jpg\n",
      "../../../Dataset/miml-image-data/original/1462.jpg\n",
      "../../../Dataset/miml-image-data/original/1463.jpg\n",
      "../../../Dataset/miml-image-data/original/1464.jpg\n",
      "../../../Dataset/miml-image-data/original/1465.jpg\n",
      "../../../Dataset/miml-image-data/original/1466.jpg\n",
      "../../../Dataset/miml-image-data/original/1467.jpg\n",
      "../../../Dataset/miml-image-data/original/1468.jpg\n",
      "../../../Dataset/miml-image-data/original/1469.jpg\n",
      "../../../Dataset/miml-image-data/original/1470.jpg\n",
      "../../../Dataset/miml-image-data/original/1471.jpg\n",
      "../../../Dataset/miml-image-data/original/1472.jpg\n",
      "../../../Dataset/miml-image-data/original/1473.jpg\n",
      "../../../Dataset/miml-image-data/original/1474.jpg\n",
      "../../../Dataset/miml-image-data/original/1475.jpg\n",
      "../../../Dataset/miml-image-data/original/1476.jpg\n",
      "../../../Dataset/miml-image-data/original/1477.jpg\n",
      "../../../Dataset/miml-image-data/original/1478.jpg\n",
      "../../../Dataset/miml-image-data/original/1479.jpg\n",
      "../../../Dataset/miml-image-data/original/1480.jpg\n",
      "../../../Dataset/miml-image-data/original/1481.jpg\n",
      "../../../Dataset/miml-image-data/original/1482.jpg\n",
      "../../../Dataset/miml-image-data/original/1483.jpg\n",
      "../../../Dataset/miml-image-data/original/1484.jpg\n",
      "../../../Dataset/miml-image-data/original/1485.jpg\n",
      "../../../Dataset/miml-image-data/original/1486.jpg\n",
      "../../../Dataset/miml-image-data/original/1487.jpg\n",
      "../../../Dataset/miml-image-data/original/1488.jpg\n",
      "../../../Dataset/miml-image-data/original/1489.jpg\n",
      "../../../Dataset/miml-image-data/original/1490.jpg\n",
      "../../../Dataset/miml-image-data/original/1491.jpg\n",
      "../../../Dataset/miml-image-data/original/1492.jpg\n",
      "../../../Dataset/miml-image-data/original/1493.jpg\n",
      "../../../Dataset/miml-image-data/original/1494.jpg\n",
      "../../../Dataset/miml-image-data/original/1495.jpg\n",
      "../../../Dataset/miml-image-data/original/1496.jpg\n",
      "../../../Dataset/miml-image-data/original/1497.jpg\n",
      "../../../Dataset/miml-image-data/original/1498.jpg\n",
      "../../../Dataset/miml-image-data/original/1499.jpg\n",
      "../../../Dataset/miml-image-data/original/1500.jpg\n",
      "../../../Dataset/miml-image-data/original/1501.jpg\n",
      "../../../Dataset/miml-image-data/original/1502.jpg\n",
      "../../../Dataset/miml-image-data/original/1503.jpg\n",
      "../../../Dataset/miml-image-data/original/1504.jpg\n",
      "../../../Dataset/miml-image-data/original/1505.jpg\n",
      "../../../Dataset/miml-image-data/original/1506.jpg\n",
      "../../../Dataset/miml-image-data/original/1507.jpg\n",
      "../../../Dataset/miml-image-data/original/1508.jpg\n",
      "../../../Dataset/miml-image-data/original/1509.jpg\n",
      "../../../Dataset/miml-image-data/original/1510.jpg\n",
      "../../../Dataset/miml-image-data/original/1511.jpg\n",
      "../../../Dataset/miml-image-data/original/1512.jpg\n",
      "../../../Dataset/miml-image-data/original/1513.jpg\n",
      "../../../Dataset/miml-image-data/original/1514.jpg\n",
      "../../../Dataset/miml-image-data/original/1515.jpg\n",
      "../../../Dataset/miml-image-data/original/1516.jpg\n",
      "../../../Dataset/miml-image-data/original/1517.jpg\n",
      "../../../Dataset/miml-image-data/original/1518.jpg\n",
      "../../../Dataset/miml-image-data/original/1519.jpg\n",
      "../../../Dataset/miml-image-data/original/1520.jpg\n",
      "../../../Dataset/miml-image-data/original/1521.jpg\n",
      "../../../Dataset/miml-image-data/original/1522.jpg\n",
      "../../../Dataset/miml-image-data/original/1523.jpg\n",
      "../../../Dataset/miml-image-data/original/1524.jpg\n",
      "../../../Dataset/miml-image-data/original/1525.jpg\n",
      "../../../Dataset/miml-image-data/original/1526.jpg\n",
      "../../../Dataset/miml-image-data/original/1527.jpg\n",
      "../../../Dataset/miml-image-data/original/1528.jpg\n",
      "../../../Dataset/miml-image-data/original/1529.jpg\n",
      "../../../Dataset/miml-image-data/original/1530.jpg\n",
      "../../../Dataset/miml-image-data/original/1531.jpg\n",
      "../../../Dataset/miml-image-data/original/1532.jpg\n",
      "../../../Dataset/miml-image-data/original/1533.jpg\n",
      "../../../Dataset/miml-image-data/original/1534.jpg\n",
      "../../../Dataset/miml-image-data/original/1535.jpg\n",
      "../../../Dataset/miml-image-data/original/1536.jpg\n",
      "../../../Dataset/miml-image-data/original/1537.jpg\n",
      "../../../Dataset/miml-image-data/original/1538.jpg\n",
      "../../../Dataset/miml-image-data/original/1539.jpg\n",
      "../../../Dataset/miml-image-data/original/1540.jpg\n",
      "../../../Dataset/miml-image-data/original/1541.jpg\n",
      "../../../Dataset/miml-image-data/original/1542.jpg\n",
      "../../../Dataset/miml-image-data/original/1543.jpg\n",
      "../../../Dataset/miml-image-data/original/1544.jpg\n",
      "../../../Dataset/miml-image-data/original/1545.jpg\n",
      "../../../Dataset/miml-image-data/original/1546.jpg\n",
      "../../../Dataset/miml-image-data/original/1547.jpg\n",
      "../../../Dataset/miml-image-data/original/1548.jpg\n",
      "../../../Dataset/miml-image-data/original/1549.jpg\n",
      "../../../Dataset/miml-image-data/original/1550.jpg\n",
      "../../../Dataset/miml-image-data/original/1551.jpg\n",
      "../../../Dataset/miml-image-data/original/1552.jpg\n",
      "../../../Dataset/miml-image-data/original/1553.jpg\n",
      "../../../Dataset/miml-image-data/original/1554.jpg\n",
      "../../../Dataset/miml-image-data/original/1555.jpg\n",
      "../../../Dataset/miml-image-data/original/1556.jpg\n",
      "../../../Dataset/miml-image-data/original/1557.jpg\n",
      "../../../Dataset/miml-image-data/original/1558.jpg\n",
      "../../../Dataset/miml-image-data/original/1559.jpg\n",
      "../../../Dataset/miml-image-data/original/1560.jpg\n",
      "../../../Dataset/miml-image-data/original/1561.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "../../../Dataset/miml-image-data/original/1562.jpg\n",
      "../../../Dataset/miml-image-data/original/1563.jpg\n",
      "../../../Dataset/miml-image-data/original/1564.jpg\n",
      "../../../Dataset/miml-image-data/original/1565.jpg\n",
      "../../../Dataset/miml-image-data/original/1566.jpg\n",
      "../../../Dataset/miml-image-data/original/1567.jpg\n",
      "../../../Dataset/miml-image-data/original/1568.jpg\n",
      "../../../Dataset/miml-image-data/original/1569.jpg\n",
      "../../../Dataset/miml-image-data/original/1570.jpg\n",
      "../../../Dataset/miml-image-data/original/1571.jpg\n",
      "../../../Dataset/miml-image-data/original/1572.jpg\n",
      "../../../Dataset/miml-image-data/original/1573.jpg\n",
      "../../../Dataset/miml-image-data/original/1574.jpg\n",
      "../../../Dataset/miml-image-data/original/1575.jpg\n",
      "../../../Dataset/miml-image-data/original/1576.jpg\n",
      "../../../Dataset/miml-image-data/original/1577.jpg\n",
      "../../../Dataset/miml-image-data/original/1578.jpg\n",
      "../../../Dataset/miml-image-data/original/1579.jpg\n",
      "../../../Dataset/miml-image-data/original/1580.jpg\n",
      "../../../Dataset/miml-image-data/original/1581.jpg\n",
      "../../../Dataset/miml-image-data/original/1582.jpg\n",
      "../../../Dataset/miml-image-data/original/1583.jpg\n",
      "../../../Dataset/miml-image-data/original/1584.jpg\n",
      "../../../Dataset/miml-image-data/original/1585.jpg\n",
      "../../../Dataset/miml-image-data/original/1586.jpg\n",
      "../../../Dataset/miml-image-data/original/1587.jpg\n",
      "../../../Dataset/miml-image-data/original/1588.jpg\n",
      "../../../Dataset/miml-image-data/original/1589.jpg\n",
      "../../../Dataset/miml-image-data/original/1590.jpg\n",
      "../../../Dataset/miml-image-data/original/1591.jpg\n",
      "../../../Dataset/miml-image-data/original/1592.jpg\n",
      "../../../Dataset/miml-image-data/original/1593.jpg\n",
      "../../../Dataset/miml-image-data/original/1594.jpg\n",
      "../../../Dataset/miml-image-data/original/1595.jpg\n",
      "../../../Dataset/miml-image-data/original/1596.jpg\n",
      "../../../Dataset/miml-image-data/original/1597.jpg\n",
      "../../../Dataset/miml-image-data/original/1598.jpg\n",
      "../../../Dataset/miml-image-data/original/1599.jpg\n",
      "../../../Dataset/miml-image-data/original/1600.jpg\n",
      "../../../Dataset/miml-image-data/original/1601.jpg\n",
      "../../../Dataset/miml-image-data/original/1602.jpg\n",
      "../../../Dataset/miml-image-data/original/1603.jpg\n",
      "../../../Dataset/miml-image-data/original/1604.jpg\n",
      "../../../Dataset/miml-image-data/original/1605.jpg\n",
      "../../../Dataset/miml-image-data/original/1606.jpg\n",
      "../../../Dataset/miml-image-data/original/1607.jpg\n",
      "../../../Dataset/miml-image-data/original/1608.jpg\n",
      "../../../Dataset/miml-image-data/original/1609.jpg\n",
      "../../../Dataset/miml-image-data/original/1610.jpg\n",
      "../../../Dataset/miml-image-data/original/1611.jpg\n",
      "../../../Dataset/miml-image-data/original/1612.jpg\n",
      "../../../Dataset/miml-image-data/original/1613.jpg\n",
      "../../../Dataset/miml-image-data/original/1614.jpg\n",
      "../../../Dataset/miml-image-data/original/1615.jpg\n",
      "../../../Dataset/miml-image-data/original/1616.jpg\n",
      "../../../Dataset/miml-image-data/original/1617.jpg\n",
      "../../../Dataset/miml-image-data/original/1618.jpg\n",
      "../../../Dataset/miml-image-data/original/1619.jpg\n",
      "../../../Dataset/miml-image-data/original/1620.jpg\n",
      "../../../Dataset/miml-image-data/original/1621.jpg\n",
      "../../../Dataset/miml-image-data/original/1622.jpg\n",
      "../../../Dataset/miml-image-data/original/1623.jpg\n",
      "../../../Dataset/miml-image-data/original/1624.jpg\n",
      "../../../Dataset/miml-image-data/original/1625.jpg\n",
      "../../../Dataset/miml-image-data/original/1626.jpg\n",
      "../../../Dataset/miml-image-data/original/1627.jpg\n",
      "../../../Dataset/miml-image-data/original/1628.jpg\n",
      "../../../Dataset/miml-image-data/original/1629.jpg\n",
      "../../../Dataset/miml-image-data/original/1630.jpg\n",
      "../../../Dataset/miml-image-data/original/1631.jpg\n",
      "../../../Dataset/miml-image-data/original/1632.jpg\n",
      "../../../Dataset/miml-image-data/original/1633.jpg\n",
      "../../../Dataset/miml-image-data/original/1634.jpg\n",
      "../../../Dataset/miml-image-data/original/1635.jpg\n",
      "../../../Dataset/miml-image-data/original/1636.jpg\n",
      "../../../Dataset/miml-image-data/original/1637.jpg\n",
      "../../../Dataset/miml-image-data/original/1638.jpg\n",
      "../../../Dataset/miml-image-data/original/1639.jpg\n",
      "../../../Dataset/miml-image-data/original/1640.jpg\n",
      "../../../Dataset/miml-image-data/original/1641.jpg\n",
      "../../../Dataset/miml-image-data/original/1642.jpg\n",
      "../../../Dataset/miml-image-data/original/1643.jpg\n",
      "../../../Dataset/miml-image-data/original/1644.jpg\n",
      "../../../Dataset/miml-image-data/original/1645.jpg\n",
      "../../../Dataset/miml-image-data/original/1646.jpg\n",
      "../../../Dataset/miml-image-data/original/1647.jpg\n",
      "../../../Dataset/miml-image-data/original/1648.jpg\n",
      "../../../Dataset/miml-image-data/original/1649.jpg\n",
      "../../../Dataset/miml-image-data/original/1650.jpg\n",
      "../../../Dataset/miml-image-data/original/1651.jpg\n",
      "../../../Dataset/miml-image-data/original/1652.jpg\n",
      "../../../Dataset/miml-image-data/original/1653.jpg\n",
      "../../../Dataset/miml-image-data/original/1654.jpg\n",
      "../../../Dataset/miml-image-data/original/1655.jpg\n",
      "../../../Dataset/miml-image-data/original/1656.jpg\n",
      "../../../Dataset/miml-image-data/original/1657.jpg\n",
      "../../../Dataset/miml-image-data/original/1658.jpg\n",
      "../../../Dataset/miml-image-data/original/1659.jpg\n",
      "../../../Dataset/miml-image-data/original/1660.jpg\n",
      "../../../Dataset/miml-image-data/original/1661.jpg\n",
      "../../../Dataset/miml-image-data/original/1662.jpg\n",
      "../../../Dataset/miml-image-data/original/1663.jpg\n",
      "../../../Dataset/miml-image-data/original/1664.jpg\n",
      "../../../Dataset/miml-image-data/original/1665.jpg\n",
      "../../../Dataset/miml-image-data/original/1666.jpg\n",
      "../../../Dataset/miml-image-data/original/1667.jpg\n",
      "../../../Dataset/miml-image-data/original/1668.jpg\n",
      "../../../Dataset/miml-image-data/original/1669.jpg\n",
      "../../../Dataset/miml-image-data/original/1670.jpg\n",
      "../../../Dataset/miml-image-data/original/1671.jpg\n",
      "../../../Dataset/miml-image-data/original/1672.jpg\n",
      "../../../Dataset/miml-image-data/original/1673.jpg\n",
      "../../../Dataset/miml-image-data/original/1674.jpg\n",
      "../../../Dataset/miml-image-data/original/1675.jpg\n",
      "../../../Dataset/miml-image-data/original/1676.jpg\n",
      "../../../Dataset/miml-image-data/original/1677.jpg\n",
      "../../../Dataset/miml-image-data/original/1678.jpg\n",
      "../../../Dataset/miml-image-data/original/1679.jpg\n",
      "../../../Dataset/miml-image-data/original/1680.jpg\n",
      "../../../Dataset/miml-image-data/original/1681.jpg\n",
      "../../../Dataset/miml-image-data/original/1682.jpg\n",
      "../../../Dataset/miml-image-data/original/1683.jpg\n",
      "../../../Dataset/miml-image-data/original/1684.jpg\n",
      "../../../Dataset/miml-image-data/original/1685.jpg\n",
      "../../../Dataset/miml-image-data/original/1686.jpg\n",
      "../../../Dataset/miml-image-data/original/1687.jpg\n",
      "../../../Dataset/miml-image-data/original/1688.jpg\n",
      "../../../Dataset/miml-image-data/original/1689.jpg\n",
      "../../../Dataset/miml-image-data/original/1690.jpg\n",
      "../../../Dataset/miml-image-data/original/1691.jpg\n",
      "../../../Dataset/miml-image-data/original/1692.jpg\n",
      "../../../Dataset/miml-image-data/original/1693.jpg\n",
      "../../../Dataset/miml-image-data/original/1694.jpg\n",
      "../../../Dataset/miml-image-data/original/1695.jpg\n",
      "../../../Dataset/miml-image-data/original/1696.jpg\n",
      "../../../Dataset/miml-image-data/original/1697.jpg\n",
      "../../../Dataset/miml-image-data/original/1698.jpg\n",
      "../../../Dataset/miml-image-data/original/1699.jpg\n",
      "../../../Dataset/miml-image-data/original/1700.jpg\n",
      "../../../Dataset/miml-image-data/original/1701.jpg\n",
      "../../../Dataset/miml-image-data/original/1702.jpg\n",
      "../../../Dataset/miml-image-data/original/1703.jpg\n",
      "../../../Dataset/miml-image-data/original/1704.jpg\n",
      "../../../Dataset/miml-image-data/original/1705.jpg\n",
      "../../../Dataset/miml-image-data/original/1706.jpg\n",
      "../../../Dataset/miml-image-data/original/1707.jpg\n",
      "../../../Dataset/miml-image-data/original/1708.jpg\n",
      "../../../Dataset/miml-image-data/original/1709.jpg\n",
      "../../../Dataset/miml-image-data/original/1710.jpg\n",
      "../../../Dataset/miml-image-data/original/1711.jpg\n",
      "../../../Dataset/miml-image-data/original/1712.jpg\n",
      "../../../Dataset/miml-image-data/original/1713.jpg\n",
      "../../../Dataset/miml-image-data/original/1714.jpg\n",
      "../../../Dataset/miml-image-data/original/1715.jpg\n",
      "../../../Dataset/miml-image-data/original/1716.jpg\n",
      "../../../Dataset/miml-image-data/original/1717.jpg\n",
      "../../../Dataset/miml-image-data/original/1718.jpg\n",
      "../../../Dataset/miml-image-data/original/1719.jpg\n",
      "../../../Dataset/miml-image-data/original/1720.jpg\n",
      "../../../Dataset/miml-image-data/original/1721.jpg\n",
      "../../../Dataset/miml-image-data/original/1722.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "../../../Dataset/miml-image-data/original/1723.jpg\n",
      "../../../Dataset/miml-image-data/original/1724.jpg\n",
      "../../../Dataset/miml-image-data/original/1725.jpg\n",
      "../../../Dataset/miml-image-data/original/1726.jpg\n",
      "../../../Dataset/miml-image-data/original/1727.jpg\n",
      "../../../Dataset/miml-image-data/original/1728.jpg\n",
      "../../../Dataset/miml-image-data/original/1729.jpg\n",
      "../../../Dataset/miml-image-data/original/1730.jpg\n",
      "../../../Dataset/miml-image-data/original/1731.jpg\n",
      "../../../Dataset/miml-image-data/original/1732.jpg\n",
      "../../../Dataset/miml-image-data/original/1733.jpg\n",
      "../../../Dataset/miml-image-data/original/1734.jpg\n",
      "../../../Dataset/miml-image-data/original/1735.jpg\n",
      "../../../Dataset/miml-image-data/original/1736.jpg\n",
      "../../../Dataset/miml-image-data/original/1737.jpg\n",
      "../../../Dataset/miml-image-data/original/1738.jpg\n",
      "../../../Dataset/miml-image-data/original/1739.jpg\n",
      "../../../Dataset/miml-image-data/original/1740.jpg\n",
      "../../../Dataset/miml-image-data/original/1741.jpg\n",
      "../../../Dataset/miml-image-data/original/1742.jpg\n",
      "../../../Dataset/miml-image-data/original/1743.jpg\n",
      "../../../Dataset/miml-image-data/original/1744.jpg\n",
      "../../../Dataset/miml-image-data/original/1745.jpg\n",
      "../../../Dataset/miml-image-data/original/1746.jpg\n",
      "../../../Dataset/miml-image-data/original/1747.jpg\n",
      "../../../Dataset/miml-image-data/original/1748.jpg\n",
      "../../../Dataset/miml-image-data/original/1749.jpg\n",
      "../../../Dataset/miml-image-data/original/1750.jpg\n",
      "../../../Dataset/miml-image-data/original/1751.jpg\n",
      "../../../Dataset/miml-image-data/original/1752.jpg\n",
      "../../../Dataset/miml-image-data/original/1753.jpg\n",
      "../../../Dataset/miml-image-data/original/1754.jpg\n",
      "../../../Dataset/miml-image-data/original/1755.jpg\n",
      "../../../Dataset/miml-image-data/original/1756.jpg\n",
      "../../../Dataset/miml-image-data/original/1757.jpg\n",
      "../../../Dataset/miml-image-data/original/1758.jpg\n",
      "../../../Dataset/miml-image-data/original/1759.jpg\n",
      "../../../Dataset/miml-image-data/original/1760.jpg\n",
      "../../../Dataset/miml-image-data/original/1761.jpg\n",
      "../../../Dataset/miml-image-data/original/1762.jpg\n",
      "../../../Dataset/miml-image-data/original/1763.jpg\n",
      "../../../Dataset/miml-image-data/original/1764.jpg\n",
      "../../../Dataset/miml-image-data/original/1765.jpg\n",
      "../../../Dataset/miml-image-data/original/1766.jpg\n",
      "../../../Dataset/miml-image-data/original/1767.jpg\n",
      "../../../Dataset/miml-image-data/original/1768.jpg\n",
      "../../../Dataset/miml-image-data/original/1769.jpg\n",
      "../../../Dataset/miml-image-data/original/1770.jpg\n",
      "../../../Dataset/miml-image-data/original/1771.jpg\n",
      "../../../Dataset/miml-image-data/original/1772.jpg\n",
      "../../../Dataset/miml-image-data/original/1773.jpg\n",
      "../../../Dataset/miml-image-data/original/1774.jpg\n",
      "../../../Dataset/miml-image-data/original/1775.jpg\n",
      "../../../Dataset/miml-image-data/original/1776.jpg\n",
      "../../../Dataset/miml-image-data/original/1777.jpg\n",
      "../../../Dataset/miml-image-data/original/1778.jpg\n",
      "../../../Dataset/miml-image-data/original/1779.jpg\n",
      "../../../Dataset/miml-image-data/original/1780.jpg\n",
      "../../../Dataset/miml-image-data/original/1781.jpg\n",
      "../../../Dataset/miml-image-data/original/1782.jpg\n",
      "../../../Dataset/miml-image-data/original/1783.jpg\n",
      "../../../Dataset/miml-image-data/original/1784.jpg\n",
      "../../../Dataset/miml-image-data/original/1785.jpg\n",
      "../../../Dataset/miml-image-data/original/1786.jpg\n",
      "../../../Dataset/miml-image-data/original/1787.jpg\n",
      "../../../Dataset/miml-image-data/original/1788.jpg\n",
      "../../../Dataset/miml-image-data/original/1789.jpg\n",
      "../../../Dataset/miml-image-data/original/1790.jpg\n",
      "../../../Dataset/miml-image-data/original/1791.jpg\n",
      "../../../Dataset/miml-image-data/original/1792.jpg\n",
      "../../../Dataset/miml-image-data/original/1793.jpg\n",
      "../../../Dataset/miml-image-data/original/1794.jpg\n",
      "../../../Dataset/miml-image-data/original/1795.jpg\n",
      "../../../Dataset/miml-image-data/original/1796.jpg\n",
      "../../../Dataset/miml-image-data/original/1797.jpg\n",
      "../../../Dataset/miml-image-data/original/1798.jpg\n",
      "../../../Dataset/miml-image-data/original/1799.jpg\n",
      "../../../Dataset/miml-image-data/original/1800.jpg\n",
      "../../../Dataset/miml-image-data/original/1801.jpg\n",
      "../../../Dataset/miml-image-data/original/1802.jpg\n",
      "../../../Dataset/miml-image-data/original/1803.jpg\n",
      "../../../Dataset/miml-image-data/original/1804.jpg\n",
      "../../../Dataset/miml-image-data/original/1805.jpg\n",
      "../../../Dataset/miml-image-data/original/1806.jpg\n",
      "../../../Dataset/miml-image-data/original/1807.jpg\n",
      "../../../Dataset/miml-image-data/original/1808.jpg\n",
      "../../../Dataset/miml-image-data/original/1809.jpg\n",
      "../../../Dataset/miml-image-data/original/1810.jpg\n",
      "../../../Dataset/miml-image-data/original/1811.jpg\n",
      "../../../Dataset/miml-image-data/original/1812.jpg\n",
      "../../../Dataset/miml-image-data/original/1813.jpg\n",
      "../../../Dataset/miml-image-data/original/1814.jpg\n",
      "../../../Dataset/miml-image-data/original/1815.jpg\n",
      "../../../Dataset/miml-image-data/original/1816.jpg\n",
      "../../../Dataset/miml-image-data/original/1817.jpg\n",
      "../../../Dataset/miml-image-data/original/1818.jpg\n",
      "../../../Dataset/miml-image-data/original/1819.jpg\n",
      "../../../Dataset/miml-image-data/original/1820.jpg\n",
      "../../../Dataset/miml-image-data/original/1821.jpg\n",
      "../../../Dataset/miml-image-data/original/1822.jpg\n",
      "../../../Dataset/miml-image-data/original/1823.jpg\n",
      "../../../Dataset/miml-image-data/original/1824.jpg\n",
      "../../../Dataset/miml-image-data/original/1825.jpg\n",
      "../../../Dataset/miml-image-data/original/1826.jpg\n",
      "../../../Dataset/miml-image-data/original/1827.jpg\n",
      "../../../Dataset/miml-image-data/original/1828.jpg\n",
      "../../../Dataset/miml-image-data/original/1829.jpg\n",
      "../../../Dataset/miml-image-data/original/1830.jpg\n",
      "../../../Dataset/miml-image-data/original/1831.jpg\n",
      "../../../Dataset/miml-image-data/original/1832.jpg\n",
      "../../../Dataset/miml-image-data/original/1833.jpg\n",
      "../../../Dataset/miml-image-data/original/1834.jpg\n",
      "../../../Dataset/miml-image-data/original/1835.jpg\n",
      "../../../Dataset/miml-image-data/original/1836.jpg\n",
      "../../../Dataset/miml-image-data/original/1837.jpg\n",
      "../../../Dataset/miml-image-data/original/1838.jpg\n",
      "../../../Dataset/miml-image-data/original/1839.jpg\n",
      "../../../Dataset/miml-image-data/original/1840.jpg\n",
      "../../../Dataset/miml-image-data/original/1841.jpg\n",
      "../../../Dataset/miml-image-data/original/1842.jpg\n",
      "../../../Dataset/miml-image-data/original/1843.jpg\n",
      "../../../Dataset/miml-image-data/original/1844.jpg\n",
      "../../../Dataset/miml-image-data/original/1845.jpg\n",
      "../../../Dataset/miml-image-data/original/1846.jpg\n",
      "../../../Dataset/miml-image-data/original/1847.jpg\n",
      "../../../Dataset/miml-image-data/original/1848.jpg\n",
      "../../../Dataset/miml-image-data/original/1849.jpg\n",
      "../../../Dataset/miml-image-data/original/1850.jpg\n",
      "../../../Dataset/miml-image-data/original/1851.jpg\n",
      "../../../Dataset/miml-image-data/original/1852.jpg\n",
      "../../../Dataset/miml-image-data/original/1853.jpg\n",
      "../../../Dataset/miml-image-data/original/1854.jpg\n",
      "../../../Dataset/miml-image-data/original/1855.jpg\n",
      "../../../Dataset/miml-image-data/original/1856.jpg\n",
      "../../../Dataset/miml-image-data/original/1857.jpg\n",
      "../../../Dataset/miml-image-data/original/1858.jpg\n",
      "../../../Dataset/miml-image-data/original/1859.jpg\n",
      "../../../Dataset/miml-image-data/original/1860.jpg\n",
      "../../../Dataset/miml-image-data/original/1861.jpg\n",
      "../../../Dataset/miml-image-data/original/1862.jpg\n",
      "../../../Dataset/miml-image-data/original/1863.jpg\n",
      "../../../Dataset/miml-image-data/original/1864.jpg\n",
      "../../../Dataset/miml-image-data/original/1865.jpg\n",
      "../../../Dataset/miml-image-data/original/1866.jpg\n",
      "../../../Dataset/miml-image-data/original/1867.jpg\n",
      "../../../Dataset/miml-image-data/original/1868.jpg\n",
      "../../../Dataset/miml-image-data/original/1869.jpg\n",
      "../../../Dataset/miml-image-data/original/1870.jpg\n",
      "../../../Dataset/miml-image-data/original/1871.jpg\n",
      "../../../Dataset/miml-image-data/original/1872.jpg\n",
      "../../../Dataset/miml-image-data/original/1873.jpg\n",
      "../../../Dataset/miml-image-data/original/1874.jpg\n",
      "../../../Dataset/miml-image-data/original/1875.jpg\n",
      "../../../Dataset/miml-image-data/original/1876.jpg\n",
      "../../../Dataset/miml-image-data/original/1877.jpg\n",
      "../../../Dataset/miml-image-data/original/1878.jpg\n",
      "../../../Dataset/miml-image-data/original/1879.jpg\n",
      "../../../Dataset/miml-image-data/original/1880.jpg\n",
      "../../../Dataset/miml-image-data/original/1881.jpg\n",
      "../../../Dataset/miml-image-data/original/1882.jpg\n",
      "../../../Dataset/miml-image-data/original/1883.jpg\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "../../../Dataset/miml-image-data/original/1884.jpg\n",
      "../../../Dataset/miml-image-data/original/1885.jpg\n",
      "../../../Dataset/miml-image-data/original/1886.jpg\n",
      "../../../Dataset/miml-image-data/original/1887.jpg\n",
      "../../../Dataset/miml-image-data/original/1888.jpg\n",
      "../../../Dataset/miml-image-data/original/1889.jpg\n",
      "../../../Dataset/miml-image-data/original/1890.jpg\n",
      "../../../Dataset/miml-image-data/original/1891.jpg\n",
      "../../../Dataset/miml-image-data/original/1892.jpg\n",
      "../../../Dataset/miml-image-data/original/1893.jpg\n",
      "../../../Dataset/miml-image-data/original/1894.jpg\n",
      "../../../Dataset/miml-image-data/original/1895.jpg\n",
      "../../../Dataset/miml-image-data/original/1896.jpg\n",
      "../../../Dataset/miml-image-data/original/1897.jpg\n",
      "../../../Dataset/miml-image-data/original/1898.jpg\n",
      "../../../Dataset/miml-image-data/original/1899.jpg\n",
      "../../../Dataset/miml-image-data/original/1900.jpg\n",
      "../../../Dataset/miml-image-data/original/1901.jpg\n",
      "../../../Dataset/miml-image-data/original/1902.jpg\n",
      "../../../Dataset/miml-image-data/original/1903.jpg\n",
      "../../../Dataset/miml-image-data/original/1904.jpg\n",
      "../../../Dataset/miml-image-data/original/1905.jpg\n",
      "../../../Dataset/miml-image-data/original/1906.jpg\n",
      "../../../Dataset/miml-image-data/original/1907.jpg\n",
      "../../../Dataset/miml-image-data/original/1908.jpg\n",
      "../../../Dataset/miml-image-data/original/1909.jpg\n",
      "../../../Dataset/miml-image-data/original/1910.jpg\n",
      "../../../Dataset/miml-image-data/original/1911.jpg\n",
      "../../../Dataset/miml-image-data/original/1912.jpg\n",
      "../../../Dataset/miml-image-data/original/1913.jpg\n",
      "../../../Dataset/miml-image-data/original/1914.jpg\n",
      "../../../Dataset/miml-image-data/original/1915.jpg\n",
      "../../../Dataset/miml-image-data/original/1916.jpg\n",
      "../../../Dataset/miml-image-data/original/1917.jpg\n",
      "../../../Dataset/miml-image-data/original/1918.jpg\n",
      "../../../Dataset/miml-image-data/original/1919.jpg\n",
      "../../../Dataset/miml-image-data/original/1920.jpg\n",
      "../../../Dataset/miml-image-data/original/1921.jpg\n",
      "../../../Dataset/miml-image-data/original/1922.jpg\n",
      "../../../Dataset/miml-image-data/original/1923.jpg\n",
      "../../../Dataset/miml-image-data/original/1924.jpg\n",
      "../../../Dataset/miml-image-data/original/1925.jpg\n",
      "../../../Dataset/miml-image-data/original/1926.jpg\n",
      "../../../Dataset/miml-image-data/original/1927.jpg\n",
      "../../../Dataset/miml-image-data/original/1928.jpg\n",
      "../../../Dataset/miml-image-data/original/1929.jpg\n",
      "../../../Dataset/miml-image-data/original/1930.jpg\n",
      "../../../Dataset/miml-image-data/original/1931.jpg\n",
      "../../../Dataset/miml-image-data/original/1932.jpg\n",
      "../../../Dataset/miml-image-data/original/1933.jpg\n",
      "../../../Dataset/miml-image-data/original/1934.jpg\n",
      "../../../Dataset/miml-image-data/original/1935.jpg\n",
      "../../../Dataset/miml-image-data/original/1936.jpg\n",
      "../../../Dataset/miml-image-data/original/1937.jpg\n",
      "../../../Dataset/miml-image-data/original/1938.jpg\n",
      "../../../Dataset/miml-image-data/original/1939.jpg\n",
      "../../../Dataset/miml-image-data/original/1940.jpg\n",
      "../../../Dataset/miml-image-data/original/1941.jpg\n",
      "../../../Dataset/miml-image-data/original/1942.jpg\n",
      "../../../Dataset/miml-image-data/original/1943.jpg\n",
      "../../../Dataset/miml-image-data/original/1944.jpg\n",
      "../../../Dataset/miml-image-data/original/1945.jpg\n",
      "../../../Dataset/miml-image-data/original/1946.jpg\n",
      "../../../Dataset/miml-image-data/original/1947.jpg\n",
      "../../../Dataset/miml-image-data/original/1948.jpg\n",
      "../../../Dataset/miml-image-data/original/1949.jpg\n",
      "../../../Dataset/miml-image-data/original/1950.jpg\n",
      "../../../Dataset/miml-image-data/original/1951.jpg\n",
      "../../../Dataset/miml-image-data/original/1952.jpg\n",
      "../../../Dataset/miml-image-data/original/1953.jpg\n",
      "../../../Dataset/miml-image-data/original/1954.jpg\n",
      "../../../Dataset/miml-image-data/original/1955.jpg\n",
      "../../../Dataset/miml-image-data/original/1956.jpg\n",
      "../../../Dataset/miml-image-data/original/1957.jpg\n",
      "../../../Dataset/miml-image-data/original/1958.jpg\n",
      "../../../Dataset/miml-image-data/original/1959.jpg\n",
      "../../../Dataset/miml-image-data/original/1960.jpg\n",
      "../../../Dataset/miml-image-data/original/1961.jpg\n",
      "../../../Dataset/miml-image-data/original/1962.jpg\n",
      "../../../Dataset/miml-image-data/original/1963.jpg\n",
      "../../../Dataset/miml-image-data/original/1964.jpg\n",
      "../../../Dataset/miml-image-data/original/1965.jpg\n",
      "../../../Dataset/miml-image-data/original/1966.jpg\n",
      "../../../Dataset/miml-image-data/original/1967.jpg\n",
      "../../../Dataset/miml-image-data/original/1968.jpg\n",
      "../../../Dataset/miml-image-data/original/1969.jpg\n",
      "../../../Dataset/miml-image-data/original/1970.jpg\n",
      "../../../Dataset/miml-image-data/original/1971.jpg\n",
      "../../../Dataset/miml-image-data/original/1972.jpg\n",
      "../../../Dataset/miml-image-data/original/1973.jpg\n",
      "../../../Dataset/miml-image-data/original/1974.jpg\n",
      "../../../Dataset/miml-image-data/original/1975.jpg\n",
      "../../../Dataset/miml-image-data/original/1976.jpg\n",
      "../../../Dataset/miml-image-data/original/1977.jpg\n",
      "../../../Dataset/miml-image-data/original/1978.jpg\n",
      "../../../Dataset/miml-image-data/original/1979.jpg\n",
      "../../../Dataset/miml-image-data/original/1980.jpg\n",
      "../../../Dataset/miml-image-data/original/1981.jpg\n",
      "../../../Dataset/miml-image-data/original/1982.jpg\n",
      "../../../Dataset/miml-image-data/original/1983.jpg\n",
      "../../../Dataset/miml-image-data/original/1984.jpg\n",
      "../../../Dataset/miml-image-data/original/1985.jpg\n",
      "../../../Dataset/miml-image-data/original/1986.jpg\n",
      "../../../Dataset/miml-image-data/original/1987.jpg\n",
      "../../../Dataset/miml-image-data/original/1988.jpg\n",
      "../../../Dataset/miml-image-data/original/1989.jpg\n",
      "../../../Dataset/miml-image-data/original/1990.jpg\n",
      "../../../Dataset/miml-image-data/original/1991.jpg\n",
      "../../../Dataset/miml-image-data/original/1992.jpg\n",
      "../../../Dataset/miml-image-data/original/1993.jpg\n",
      "../../../Dataset/miml-image-data/original/1994.jpg\n",
      "../../../Dataset/miml-image-data/original/1995.jpg\n",
      "../../../Dataset/miml-image-data/original/1996.jpg\n",
      "../../../Dataset/miml-image-data/original/1997.jpg\n",
      "../../../Dataset/miml-image-data/original/1998.jpg\n",
      "../../../Dataset/miml-image-data/original/1999.jpg\n",
      "../../../Dataset/miml-image-data/original/2000.jpg\n"
     ]
    }
   ],
   "source": [
    "i=0\n",
    "for path in all_original_images['imagepath']:\n",
    "    i=i+1\n",
    "    \n",
    "    if(i>1400):\n",
    "        print(path)\n",
    "        !cp $path ./test"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "doc  pics  src\r\n"
     ]
    }
   ],
   "source": [
    "current = \"../\"\n",
    "!ls $current"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
